<?php
m2import('phpinchains/util/BundleTool.php');
m2import('phpinchains/PSPPage.php');
m2import('phpinchains/tagsupport/HtmlInput.php');
m2import('phpinchains/tagsupport/URL.php');
m2import('phpinchains/tagsupport/functions.inc.php');
class defaulterrorPSPPage extends PSPPage 
{
   var $validatormap;
   var $objcache;
   function validateField (& $env, & $actionform, $fieldname, $validationParam, $validatormapping)
   {
       if (!is_object($this->objcache[$this->validatormap[$validatormapping]['class']]))
       {
           m2import($this->validatormap[$validatormapping]['class'].'.php');
           $classname = end(split('/', $this->validatormap[$validatormapping]['class']));
           $this->objcache[$this->validatormap[$validatormapping]['class']] = new $classname();
       }
       $this->objcache[$this->validatormap[$validatormapping]['class']]->{$this->validatormap[$validatormapping]['method']}($env, $actionform, $fieldname, $validationParam);
   }

   function validate (& $dispatcher, & $env, & $actionform, $formname, $basedir)
   {
       $this->dispatcher = & $dispatcher;
       include($basedir.'action-config.xml.php');
       $this->validatormap = $validators;
       $validationErrors = & $actionform->getRef('validationErrors');
       $validationErrors->setForm($formname);
       $returnVal = true;
       
       return $returnVal;
   }
   function compilePSP ($sfile, $cfile, $viewname)
   {
       $this->dispatcher->compilePSP($sfile, $cfile, $viewname);
   }

   function render (& $dispatcher, & $env, & $actionform)
   {
       $this->dispatcher = & $dispatcher;
       
 print "<h2>WM 2006 Gewinnspiel</h2>

Es ist ein Fehler aufegtreten. Bitte versuchen Sie es erneut. Sollte der Fehler wiederholt auftreten
kontaktieren Sie bitte den Webmaster.

<br/>
Error:<br/>
";
print __id($env, $actionform, array('responseScope', 'errorLocation'));
 print "<br/>
";
print __id($env, $actionform, array('responseScope', 'errorCause'));
 print "<br/>
";
print __id($env, $actionform, array('responseScope', 'errorSubject'));
 print "";

   }
}
?>